import Vue from 'vue'
import VueRouter from 'vue-router'


Vue.use(VueRouter)

const routes = [
    {
        name: 'index',
        path: '/',
        component: () => import('@/views/Index/index.vue'),
        meta: {
            title: "潮州文旅"
        }
    },
    {
        name: "guangji-bridge",
        path: "/attractions/guangji-bridge",
        component: () => import("@/views/Attractions/guangJiBridge.vue"),
        meta: {
            title: "广济桥"
        }
    },
    {
        name: "kaiyuan-temple",
        path: "/attractions/kaiyuan-temple",
        component: () => import("@/views/Attractions/kaiYuanTemple.vue"),
        meta: {
            title: "开元寺"
        }
    },
    {
        name: "chaozhou-ancient-city",
        path: "/attractions/chaozhou-ancient-city",
        component:()=>import("@/views/Attractions/chaozhouAncientCity.vue"),
        meta: {
            title: "潮州古城"
        }
    },
    {
        name: "pavilions-street",
        path: "/attractions/pavilions-street",
        component:()=>import("@/views/Attractions/pavilionsStreet.vue"),
        meta: {
            title: "牌坊街"
        }
    },
    {
        name: "xu-consort-mansion",
        path: "/attractions/xu-consort-mansion",
        component:()=>import("@/views/Attractions/xuConsortMansion.vue"),
        meta: {
            title: "许驸马府"
        }
    },
    {
        name: "qinglong-ancient-temple",
        path: "/attractions/qinglong-ancient-temple",
        component:()=>import("@/views/Attractions/qingLongAncientTemple.vue"),
        meta: {
            title: "青龙古庙"
        }
    },
    {
        name: "korean-temple",
        path: "/attractions/korean-temple",
        component:()=>import("@/views/Attractions/koreanTemple.vue"),
        meta: {
            title: "韩文公祠"
        }
    },
    {
        name: "longhu-ancient-village",
        path: "/attractions/longhu-ancient-village",
        component:()=>import("@/views/Attractions/longhuAncientVillage.vue"),
        meta: {
            title: "龙湖古寨"
        }
    }
]

const router = new VueRouter({
    mode: 'history',
    routes
})

export default router
